Skip to content

Conversation

@sashass1315
Copy link
Contributor

reopen #1340
Fixes #1335

const COMPONENT: &str = "miden-ntx-builder";

pub const DEFAULT_SCRIPT_CACHE_SIZE: NonZeroUsize =
NetworkTransactionBuilder::DEFAULT_SCRIPT_CACHE_SIZE;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this do we?

/// Each cached script contains the deserialized `NoteScript` object, so the actual memory usage
/// depends on the complexity of the scripts being cached.
const DEFAULT_SCRIPT_CACHE_SIZE: NonZeroUsize = NonZeroUsize::new(1000).unwrap();
pub const DEFAULT_SCRIPT_CACHE_SIZE: NonZeroUsize = NonZeroUsize::new(1000).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't need to be pub does it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't need to be pub does it?

Made changes

Copy link
Collaborator

@sergerad sergerad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM TY

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit a1f4f6e into 0xMiden:next Jan 12, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make NtxDataStore script cache size configurable

3 participants